package com.zscat.mallplus.qsg;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("qsg_order_sharing_detail")
public class QsgOrderSharingDetail implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "transaction_id")
    private String transactionId;

    @TableField(value = "out_order_no")
    private String outOrderNo;

    @TableField(value = "server_mch_id")
    private String serverMchid;

    @TableField(value = "server_appid")
    private String serverAppid;

    @TableField(value = "store_id")
    private Integer storeId;

    @TableField(value = "sub_mch_id")
    private String subMchid;

    @TableField(value = "receiver_mchid")
    private String receiverMchid;

    @TableField(value = "amount")
    private BigDecimal amount;

    @TableField(value = "create_datetime")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDatetime;
}